<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jsx_exercise</title>
</head>
<body>
  <div id="app">
      
  </div>

  <script src="lib/react.development.js"></script>
  <script src="lib/react-dom.development.js"></script>
  <script src="lib/babel.min.js"></script>

<script type="text/babel">

 let arr =['Java','Python','C++','JavaScript'];
 const VDOM =(
     <ul>
         {/*jsx中遍历渲染数据要我们自己来处理，不能用for循环的方式遍历数据拼串
           要通过表达式的方式(有返回值)处理数据
         */}
         {arr.map((value, index) =><li key={index}>{value}</li>
         )}
     </ul>
 )
 ReactDOM.render(VDOM,document.getElementById("app"));
</script>
</body>
</html>